import axios from 'axios';
import { loginreq, req } from './axiosFun';

/**
 * 维修管理
 **/
// 维修管理-分页
export const repairAddrList = (params) => { return req("post", "/api/addr/list/page", params) };

// 维修管理-添加
export const repairAddrSave = (params) => { return req("post", "/api/addr/save", params) };
// 维修管理-修改
export const repairAddrEdit = (params) => { return req("post", "/api/addr/edit", params) };

// 维修管理-删除
export const repairAddrDelete = (params) => { return axios.delete("/api/addr/del/" + params).then(res => res.data) };
// 维修管理-状态
export const repairAddrStatus = (params) => { return req("post", "/api/addr/edit", params) };
// 维修管理-批量
export const repairAddrBatchDel = (params) => { return req("post", "/api/addr/del/batch", params) };

